Spread WinForms 15
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / ListBase<T> Class / IndexOf Method / IndexOf(T) Method
The object to locate in the ListBase<T>.


In This Topic
IndexOf(T) Method
In This Topic
Determines the index of a specific item in the ListBase<T>.
Syntax
'Declaration
 
Public Overloads Function IndexOf( _
   ByVal item As T _
) As Integer
 
'Usage
 
Dim instance As ListBase(Of T)
Dim item As T
Dim value As Integer
 
value = instance.IndexOf(item)

Parameters

item
The object to locate in the ListBase<T>.

Return Value

The index of item if found in the list; otherwise, -1.
See Also